* classification of deals based on 4 quadrants based on joint utility estimates for the purpose of visualization

gen cards_division=.
replace cards_division=	1	if cardname == "01001100"
replace cards_division=	1	if cardname == "01001011"
replace cards_division=	1	if cardname == "01011010"
replace cards_division=	2	if cardname == "01100000"
replace cards_division=	2	if cardname == "01000001"
replace cards_division=	2	if cardname == "01010000"
replace cards_division=	2	if cardname == "01000010"
replace cards_division=	2	if cardname == "01000100"
replace cards_division=	2	if cardname == "01000011"
replace cards_division=	2	if cardname == "01001000"
replace cards_division=	2	if cardname == "01010010"
replace cards_division=	2	if cardname == "01101000"
replace cards_division=	2	if cardname == "01001001"
replace cards_division=	2	if cardname == "01011000"
replace cards_division=	2	if cardname == "01001010"
replace cards_division=	4	if cardname == "01010101"
replace cards_division=	4	if cardname == "11000001"
replace cards_division=	4	if cardname == "01011101"
replace cards_division=	4	if cardname == "11001001"
replace cards_division=	4	if cardname == "01100110"
replace cards_division=	4	if cardname == "01101110"
replace cards_division=	4	if cardname == "11010000"
replace cards_division=	4	if cardname == "01000111"
replace cards_division=	4	if cardname == "11011000"
replace cards_division=	4	if cardname == "01110001"
replace cards_division=	4	if cardname == "11000010"
replace cards_division=	4	if cardname == "01001111"
replace cards_division=	4	if cardname == "01010110"
replace cards_division=	4	if cardname == "01100011"
replace cards_division=	4	if cardname == "01111001"
replace cards_division=	4	if cardname == "11001010"
replace cards_division=	4	if cardname == "01011110"
replace cards_division=	4	if cardname == "01110010"
replace cards_division=	4	if cardname == "01101011"
replace cards_division=	4	if cardname == "01010011"
replace cards_division=	4	if cardname == "01101100"
replace cards_division=	4	if cardname == "01111010"
replace cards_division=	4	if cardname == "01001101"
replace cards_division=	4	if cardname == "11001000"
replace cards_division=	4	if cardname == "01101001"
replace cards_division=	4	if cardname == "01011011"
replace cards_division=	4	if cardname == "01011100"
replace cards_division=	4	if cardname == "01111000"
replace cards_division=	4	if cardname == "01011001"
replace cards_division=	4	if cardname == "01001110"
replace cards_division=	4	if cardname == "01101010"
replace cards_division=	3	if cardname == "01100100"	
replace cards_division=	3	if cardname == "01100001"
replace cards_division=	3	if cardname == "11000000"
replace cards_division=	3	if cardname == "01000101"
replace cards_division=	3	if cardname == "01110000"
replace cards_division=	3	if cardname == "01010100"
replace cards_division=	3	if cardname == "01010001"
replace cards_division=	3	if cardname == "01100010"
replace cards_division=	3	if cardname == "01000110"

* ideintify class of deals who cross the ZOPA 45 degree line
gen cards_fairdeals = 0
replace cards_fairdeals = 1 if cardname == "01100001"
replace cards_fairdeals = 1 if cardname == "01110000"
replace cards_fairdeals = 1 if cardname == "01010001"
replace cards_fairdeals = 1 if cardname == "01100010"
replace cards_fairdeals = 1 if cardname == "01000011"
replace cards_fairdeals = 1 if cardname == "01010010"
replace cards_fairdeals = 1 if cardname == "01011000"
